package com.ysd.lis.entity.qc;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.util.List;

/**
 * <p>
 * cold_chain.t_user
 * </p>
 *
 * @author peng
 * @since 2021-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QcMaterial extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String instrId;
    private String qcNo;
    private String materialName;
    private String batchNum;
    private String actualBatchNum;
    private String horizontal;
    private String manufacturer;
    private String supplier;
    private String reagentSupplier;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp enableDate;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp validDate;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp stopDate;
    private String stopOperator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp entryDate;
    private String entryOperator;
    private String caliManu;
    private String ncclBatchNum;
    private Boolean reportBasis;
    private Integer seq;
    @TableField(exist = false)
    private String instrName;
    @TableField(exist = false)
    private String manufacturerName;
    @TableField(exist = false)
    private String caliManuName;
    @TableField(exist = false)
    private String supplierName;
    @TableField(exist = false)
    private String reagentSupplierName;

    @TableField(exist = false)
    private List<QcMaterialItem> materialItemList;
    @TableField(exist = false)
    private List<QcMaterialItem> children;

}
